import http from "@/utils/fetch";
// 拒绝订单
export function rejectRefund(params) {
  return http.post("/Admin/OrderRefund/rejectRefund", params, true);
}
// 订单退款列表
export function orderRefundList(params) {
  return http.post("/Admin/OrderRefund/orderRefundList", params);
}
// 订单退款详情
export function orderRefundInfo(id) {
    return http.get("/Admin/OrderRefund/orderRefundInfo", { order_id: id });
}
// 退款订单补足金额明细
export function orderRefundTransData(id) {
    return http.get("/Admin/OrderRefund/orderRefundTransData", { refund_id: id });
}
// 退款订单明细查看详情
export function orderRefundDetail(id) {
    return http.get("/Admin/OrderRefund/orderRefundDetail", { refund_id: id });
}
// 商户审核通过
export function shopCheckPass(id) {
  return http.post("/Admin/OrderRefund/shopCheckPass", { refund_id: id }, true);
}
// 商户审核拒绝
export function shopCheckRefuse(params) {
  return http.post("/Admin/OrderRefund/shopCheckRefuse", params, true);
}
// 审核通过
export function orderCheckPass(params) {
  return http.post("/Admin/Order/orderCheckPass", params, true);
}
// 平台审核通过
export function adminCheckPass(id) {
  return http.post("/Admin/OrderRefund/adminCheckPass", {refund_id: id}, true);
}
// 平台审核拒绝
export function adminCheckRefuse(params) {
  return http.post("/Admin/OrderRefund/adminCheckRefuse", params, true);
}


